static char *encoded_points = NULL;
static char *encoded_levels = NULL;
static char *script = NULL;
-static route_head *track_head;
+static route_head *route_head;
static short_handle desc_handle;
static FILE *fd;
{
waypoint *wpt_tmp;
- wpt_tmp = route_find_waypt_by_name( track_head, goog_segname);
+ wpt_tmp = route_find_waypt_by_name( route_head, goog_segname);
if (wpt_tmp) {
xfree(wpt_tmp->shortname);
wpt_tmp->shortname = mkshort(desc_handle,args);
char *str = encoded_points;
char *lstr = encoded_levels;
- track_head = route_head_alloc();
- route_add_head(track_head);
+ route_head = route_head_alloc();
+ route_add_head(route_head);
while ( str && *str )
{
wpt_tmp->route_priority=level;
wpt_tmp->shortname = (char *) xmalloc(7);
sprintf( wpt_tmp->shortname, "\\%5.5x", serial++ );
- route_add_wpt(track_head, wpt_tmp);
+ route_add_wpt(route_head, wpt_tmp);
}
}
if (shp->nSHPType == SHPT_ARC) {
int j;
- route_head *track_head = route_head_alloc();
- track_head->rte_name = xstrdup(name);
- route_add_head(track_head);
+ route_head *routehead = route_head_alloc();
+ routehead->rte_name = xstrdup(name);
+ route_add_head(routehead);
for (j = 0; j < shp->nVertices; j++) {
wpt = waypt_new();
wpt->latitude = shp->padfY[j];
wpt->longitude = shp->padfX[j];
wpt->altitude = shp->padfZ[j];
- route_add_wpt(track_head, wpt);
+ route_add_wpt(routehead, wpt);
}
}